﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CreateJM
{
    class WordCodeInfo
    {
        public string Word { get; set; }
        public string Code { get; set; }
       // public int Freqency { get; set; }
        public string Code1 { get; set; }
        public string Code2 { get; set; }
        public string Code3 { get; set; }
        public string Code4 { get; set; }

        public WordCodeInfo(string word, string code)
        {
            this.Word = word;
            this.Code = code;
            //this.Freqency = freqency;

            this.Code1 = code.Substring(0, 1);
            this.Code2 = code.Substring(0, 2);
            if (Code.Length == 3)
            {
                this.Code3 = code;
            }
            if (Code.Length == 4)
            {
                this.Code3 = code.Substring(0, 3);
                this.Code4 = code;
            }

        }
    }
}
